﻿<%@ Page Title="" Language="C#" MasterPageFile="~/templete/UserCenter_inner.master"
    AutoEventWireup="true" CodeFile="UC_Activity.aspx.cs" Inherits="Member_UC_Activity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Content" runat="Server">
    <div id="contents" class="fl">
        <div class="new-box-gray single fl">
            <div class="con">
                <h3>
                    校内活动 <span>Campus Activities</span>
                    <span class="newwblist">
                        <asp:HyperLink ID="newAct" NavigateUrl="javascript:;" ToolTip="发布一个新活动" runat="server">发布</asp:HyperLink> </span>
                </h3>
                <asp:Repeater ID="Repeater_ActivityList" runat="server">
                    <ItemTemplate>
                        <dl>
                            <dt><a href="../ActivityDetail.aspx?ID=<%#DataBinder.Eval(Container.DataItem, "ID")%>"
                                target="_blank">
                                <img alt="" src="../Uploads/poster/<%#DataBinder.Eval(Container.DataItem, "Poster").ToString().Length<1?"noPhoto.jpg":DataBinder.Eval(Container.DataItem, "Poster")%>" /></a></dt>
                            <dd>
                                <h2>
                                    <a href="../ActivityDetail.aspx?ID=<%#DataBinder.Eval(Container.DataItem, "ID")%>"
                                        target="_blank">
                                        <%#DataBinder.Eval(Container.DataItem, "Name")%></a></h2>
                                <p>
                                    <span>参与者/嘉宾：</span>
                                    <%#DataBinder.Eval(Container.DataItem, "Participant")%>
                                </p>
                                <p>
                                    <span>活动说明：</span>
                                    <%#DataBinder.Eval(Container.DataItem, "Brief").ToString().Length < 1 ? "无" : DataBinder.Eval(Container.DataItem, "Brief")%>
                                </p>
                                <p>
                                    <span>活动时间：</span>
                                    <%#String.Format("{0:MM}月{0:dd}日 {0:dddd} {0:HH:mm}", DataBinder.Eval(Container.DataItem, "BeginTime"))%></p>
                                <p>
                                    <span>活动地点：</span>
                                    <%#DataBinder.Eval(Container.DataItem, "HoldPlace")%></p>
                            </dd>
                        </dl>
                    </ItemTemplate>
                </asp:Repeater>
                </dl>
            </div>
        </div>
    </div>
</asp:Content>
